<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>lu_projectProgress_material 过程管理-材料管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link href="ADMIN_PUBLIC/css/bootstrap.min.css" rel="stylesheet">
    <link href="ADMIN_PUBLIC/css/animate.min.css" rel="stylesheet">
    <link href="ADMIN_PUBLIC/css/style.min.css" rel="stylesheet">

    <link rel="stylesheet" href="ADMIN_PUBLIC/css/lu_common.css">
    <link rel="stylesheet" href="ADMIN_PUBLIC/css/lu_projectProgress.css">
    <link rel="stylesheet" href="ADMIN_PUBLIC/fonts_style/iconfont.css">
</head>
<body class="color_fff container-fluid row" style="background-color: #fff">
<include file = 'Common/pro_nav' />
<div class="row projectProgress_table_BOX">
    <include file = 'Common/pro_base' />
    <div class="table_BOX">
        <table class="col-sm-12 table table-striped comTableStyle" id="table_table">
            <thead>
            <tr>
                <th><input type="checkbox" id="checkAll" class="checkboxStyle"></th>
                <th>时间</th>
                <th>材料名称</th>
                <!--<th>型号</th>-->
                <!--<th>领料单编号</th>-->
                <!--<th>领用人</th>-->
                <!--<th>领用部门</th>-->
                <th>数量</th>
                <th>计量单位</th>
                <th>单价(元)</th>
                <th>材料金额(元)</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
        <volist name = 'data' id = 'v'>
            <tr data-index="{$v.id}">
                <td><input type="checkbox" class="checkboxStyle" <if condition = "$v.status == 1">disabled<else /></if>></td>
                <td>{$v.mat_time}</td>
                <td>{$v.mat_name}</td>
                <!--<td>{$v.mat_desc}</td>-->
                <!--<td>{$v.mat_sn}</td>-->
                <!--<td>{$v.staff_name}</td>-->
                <!--<td>{$v.dep_name}</td>-->
                <td>{$v.mat_count}</td>
                <td>{$v.mat_unit}</td>
                <td>{$v.mat_uprice}</td>
                <td>{$v.mat_total}</td>
                <if condition  = '$v.status == 0'>
                               <td><a href="edit_people" class="edit_table">编辑</a></td>
                               <else />
                               <td>暂无关联</td>
                </if>
                <!--<td><a href="#addSpecialIncome" class="btn btn-success add_special">添加特殊材料</a></td>-->
            </tr>
        </volist>
            </tbody>
        </table>
        <div class="pagination"><ul><li>{$page}</li></ul></div>
        <div class="hidden_box">
            <div class="hidden_box_showBox ">
                <span id="dateVal">筛选</span>
                <i class="iconfont icon-jiantou"></i>
            </div>
            <ul class="hidden_box_hiddenBox">
                <li class=" hidden_box_hiddenBox_list ">
                    <span class="hiddenBox_list_text">时间：</span>
                    <input type="text" class=" BFBFBF_inputStyle" id="query_year_people" data-query='time'>
                </li>
                <li class=" hidden_box_hiddenBox_list ">
                    <span class="hiddenBox_list_text">材料名称：</span>
                    <input type="text" class=" BFBFBF_inputStyle" data-query='mat_name'>
                </li>
                <!--<li class=" hidden_box_hiddenBox_list ">-->
                    <!--<span class="hiddenBox_list_text">型号：</span>-->
                    <!--<input type="text" class=" BFBFBF_inputStyle">-->
                <!--</li>-->
                <li class="hiddenBox_list_btn">
                    <button class="btn btn-sm btn-success" id="query">确定</button>
                    <button class="btn btn-sm btn-success">查找全部</button>
                    <button class="btn btn-sm btn-default">取消</button>
                </li>
            </ul>
        </div>
        <ul class="operation_btn">
            <li><a href="add_people" class="btn btn-success">添加</a></li>
            <!-- <li><a href="#addSpecialIncome" class="btn btn-success">添加特殊材料</a></li> -->
             <li><a href="#import" class="btn btn-success">批量导入</a></li>
            <li><a href="#delete" class="btn btn-success">批量删除</a></li>
            <!--<li><a href="#check" class="btn btn-success">核算</a></li>-->
        </ul>
        <ul class="animated fadeIn add_hiddenBox" lll="add_people" id='add_people'>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>时间：</label>
                <div class="col-sm-9">
                    <input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" id="add_time" add_name="add_time" autocomplete="off">
                </div>
            </li>
            <!-- 插入进来的 -->
            <!--<li class="form-group table_btn_list">-->
                <!--<label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>领料单编号：</label>-->
                <!--<div class="col-sm-9">-->
                    <!--<input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="add_ReceiveMaterialNum" autocomplete="off">-->
                <!--</div>-->
            <!--</li>-->
            <!--<li class="form-group table_btn_list">-->
                <!--<label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>领用人：</label>-->
                <!--<div class="col-sm-9">-->
                    <!--<select class="form-control table_btn_list_selectStyle" add_name="add_userPeople">-->
                    <!--</select>-->
                <!--</div>-->
            <!--</li>-->

            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>材料名称：</label>
                <div class="col-sm-9">
                    <input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="add_name" autocomplete="off">
                </div>
            </li>
            <!--<li class="form-group table_btn_list">-->
                <!--<label class="col-sm-3 control-label table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>型号：</label>-->
                <!--<div class="col-sm-9">-->
                    <!--<input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="add_TypeNum" autocomplete="off">-->
                <!--</div>-->
            <!--</li>-->
            <!-- 领料单编号和领用人移上去了 -->
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>计量单位：</label>
                <div class="col-sm-9">
                    <!--<textarea class="textarea_style" add_name="add_workTimeRecord"></textarea>-->
                    <input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="add_unit" autocomplete="off">
                </div>
            </li>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>数量：</label>
                <div class="col-sm-9">
                    <!--<textarea class="textarea_style" add_name="add_workTimeRecord"></textarea>-->
                    <input type="number" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="add_num" autocomplete="off">
                </div>
            </li>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>单价(元)：</label>
                <div class="col-sm-9">
                    <!--<textarea class="textarea_style" add_name="add_workTimeRecord"></textarea>-->
                    <input type="number" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="add_price" autocomplete="off">
                </div>
            </li>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>金额(元)：</label>
                <div class="col-sm-9">
                    <!--<textarea class="textarea_style" add_name="add_workTimeRecord"></textarea>-->
                    <input type="number" class="col-sm-9 BFBFBF_inputStyle add_people_input" readonly placeholder="" add_name="add_sum" autocomplete="off">
                </div>
            </li>
            <li class="button_list">
                <button class="btn btn-sm btn-success" id="add_btn">确认添加</button>
                <button class="btn btn-sm btn-success" id="add_AddNew_btn">添加并新增</button>
                <button class="btn btn-sm btn-default cancel_btn">取消</button>
            </li>
        </ul>
        <ul class="animated fadeIn add_hiddenBox" lll="edit_people" id='edit_people'>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>时间：</label>
                <div class="col-sm-9">
                    <input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" id="edit_time" add_name="edit_time" autocomplete="off">
                </div>
            </li>
            <!-- 插入进来的 -->
            <!--<li class="form-group table_btn_list">-->
                <!--<label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>领料单编号：</label>-->
                <!--<div class="col-sm-9">-->
                    <!--<input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="edit_ReceiveMaterialNum" autocomplete="off">-->
                <!--</div>-->
            <!--</li>-->
            <!--<li class="form-group table_btn_list">-->
                <!--<label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>领用人：</label>-->
                <!--<div class="col-sm-9">-->
                    <!--<select class="form-control table_btn_list_selectStyle" add_name="edit_userPeople">-->
                    <!--</select>-->
                <!--</div>-->
            <!--</li>-->

            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>材料名称：</label>
                <div class="col-sm-9">
                    <input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="edit_name" autocomplete="off">
                </div>
            </li>
            <!--<li class="form-group table_btn_list">-->
                <!--<label class="col-sm-3 control-label table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>型号：</label>-->
                <!--<div class="col-sm-9">-->
                    <!--<input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="edit_TypeNum" autocomplete="off">-->
                <!--</div>-->
            <!--</li>-->
            <!-- 领料单编号和领用人移上去了 -->
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>计量单位：</label>
                <div class="col-sm-9">
                    <input type="text" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="edit_unit" autocomplete="off">
                </div>
            </li>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>数量：</label>
                <div class="col-sm-9">
                    <input type="number" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="edit_num" autocomplete="off">
                </div>
            </li>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>单价(元)：</label>
                <div class="col-sm-9">
                    <input type="number" class="col-sm-9 BFBFBF_inputStyle add_people_input" placeholder="" add_name="edit_price" autocomplete="off">
                </div>
            </li>
            <li class="form-group table_btn_list">
                <label class="col-sm-3 table_btn_list_title"><i class="iconfont icon-asterisk table_btn_list_necessary"></i>金额(元)：</label>
                <div class="col-sm-9">
                    <input type="number" class="col-sm-9 BFBFBF_inputStyle add_people_input" readonly placeholder="" add_name="edit_sum" autocomplete="off">
                </div>
            </li>
            <li class="button_list">
                <button class="btn btn-sm btn-success" id="save_btn">保存</button>
                <button class="btn btn-sm btn-default cancel_btn">取消</button>
            </li>
        </ul>
    </div>

    <!--内容没填完，弹框-->
    <div class="warning_hiddenBox animated fadeIn" id="yz_modal" box="yz_modal">
        您有内容没有填写完哦！
    </div>
    <!--删除人员-->
    <div class="add_hiddenBox animated fadeIn" id="delete" lll="delete">
        <p class="delete_tip_text">确认删除吗？</p>
        <div class="delete_tip_btn_box">
            <button class="btn btn-sm btn-success">确认</button>
            <button class="btn btn-sm btn-default">取消</button>
        </div>
    </div>
    <!--导入文件-->
    <div class="add_hiddenBox animated fadeIn active" id="import" lll="import">
        <p class="import_tip_text">温馨提示：</p>
        <p class="import_tip_text">请下载统一的模版，并按相应的格式在Excel软件中填写您的业务数据，然后再导入到系统中。</p>
        <form action="http://zsjjkc.youledi.cn/Admin/Material/importMaterial" method="post" enctype="multipart/form-data" id="file_form">
            <input type="file" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" class="import_tip_text file_upload_btn" id="file_upload" name="mats">
            <div class="import_tip_btn_box">
                <a class="btn btn-sm btn-success" href="http://zsjjkc.youledi.cn/Excel/tpl/过程管理材料批量导入模板.xls">下载模板</a>
                <button class="btn btn-sm btn-grey">确定导入</button>
            </div>
        </form>
    </div>
</div>

<script src="ADMIN_PUBLIC/js/jquery.min.js"></script>
<script src="ADMIN_PUBLIC/js/laydate/laydate.js"></script>
<script src="ADMIN_PUBLIC/js/lu_projectProgress_material.js"></script>
<script>
    $(function(){
        window.query_year_people=''
//        window.add_time=''
//        window.edit_time=''

        laydate.render({
            elem: '#query_year_people', //指定元素
            type:  'month',
            theme: '#2881C1',
            done: function(value, date, endDate){
                var dateVal = date.year+'年'+date.month+'月'
                window.query_year_people = dateVal
            }
        });
        laydate.render({
            elem: '#add_time', //指定元素
            theme: '#2881C1',
            done: function(value, date, endDate){
                var dateVal = date.year+'年'+date.month+'月'+date.date+'日'
//                window.add_time = dateVal
            }
        });
        laydate.render({
            elem: '#edit_time', //指定元素
            theme: '#2881C1',
            done: function(value, date, endDate){
                var dateVal = date.year+'年'+date.month+'月'+date.date+'日'
//                window.edit_time = dateVal
            }
        });
        laydate.render({
            elem: '#SpecialIncome_time', //指定元素
            theme: '#2881C1',
            done: function(value, date, endDate){
                var dateVal = date.year+'年'+date.month+'月'+date.date+'日'
//                window.SpecialIncome_time = dateVal
            }
        });
    })
</script>
</body>
</html>